package cn.xdf.entity;


import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class City {
    private Integer id; //城市id
    private String cityName; //城市名称

    private Double GDP;//城市GDP，单位亿元

    private Boolean capital;//是否是省会

//    @JsonIgnore//加了这个就忽略他的意思
    private Province province;//所属省份

    public City(Integer id,String cityName,Double GDP,Boolean capital){
        this.id=id;
        this.cityName=cityName;
        this.GDP=GDP;
        this.capital=capital;
    }
}
